<ion-modal-view>
  <ion-header-bar>
    <button class="button button-clear" ng-click="closeImgModal()">关闭</button>
  </ion-header-bar>

  <ion-content>
    <div class="list padding">
      <div class="item item-icon-right" ng-click="getPhoto();">
        拍照
        <i class="icon ion-camera"></i>
      </div>

      <label class="item item-input">
        <textarea rows="5" placeholder="请输入返修原因" ng-model="repair.detailInfo"></textarea>
      </label>
      <!-- Show pictures -->
      <div class="row" ng-repeat="image in images" ng-if="$index % 3 === 0">
        <div class="col col-33" ng-if="$index < images.length">
          <img ng-src="{{images[$index]}}" width="100%" ng-click="onSwipe($index);"/>
        </div>
        <div class="col col-33" ng-if="$index + 1 < images.length">
          <img ng-src="{{images[$index + 1]}}" width="100%" ng-click="onSwipe($index+1);"/>
        </div>
        <div class="col col-33" ng-if="$index + 2 < images.length">
          <img ng-src="{{images[$index + 2]}}" width="100%" ng-click="onSwipe($index+2);"/>
        </div>
      </div>

      <button class="button ion-settings button-block button-positive" ng-click="resetDone();" > 确定返修 </button>
    </div>
  </ion-content>
</ion-modal-view>